<?php 
include '../connection/connection.php';
$idmonitor = $_REQUEST['monitorid'];
$query1 = "SELECT nCamera FROM monitor m WHERE m.Monitor_ID=$idmonitor;";
$result = mysql_query($query1,$connection);
$numb=1;
while( $row=mysql_fetch_array($result) ){
	$cot=$row['nCamera']+1;
	$numb=$cot * $cot;
}
mysql_close($connection);
?>
<input type="hidden" id="somanhinh" name="somanhinh" value="<?=$numb?>" style="display:none"/>